#!/usr/bin/env python

import sys

def main():
    for line in sys.stdin:
        for word in line.split():
            sys.stdout.write("%s\t1\n" % word)
    return 0

sys.exit(main())
